package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务单关联备件信息对象 st_service_part
 * 
 * @author shihx
 * @date 2020-03-16
 */
@ApiModel(value="ServicePart",description="服务单关联备件信息实体") // 用来描述封装的参数对象与返回的参数对象
public class ServicePart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键",name="id",required = true,dataType="Long",example="主键")
    private Long id;

    /** 服务派单表主键ID */
    @Excel(name = "服务派单表主键ID")
    @ApiModelProperty(value = "服务派单表主键ID",name="serviceNoticeId",required = true,dataType="String",example="服务派单表主键ID")
    private Long serviceNoticeId;

    /** 服务派单号 */
    @Excel(name = "服务派单号")
    @ApiModelProperty(value = "服务派单号",name="serviceNo",required = true,dataType="String",example="服务派单号")
    private String serviceNo;

    /** 备件号 */
    @Excel(name = "备件号")
    @ApiModelProperty(value = "备件号",name="partNo",required = true,dataType="String",example="备件号")
    private String partNo;

    /** 备件名称 */
    @Excel(name = "备件名称")
    @ApiModelProperty(value = "备件名称",name="partName",required = true,dataType="String",example="备件名称")
    private String partName;

    /** 序列号 */
    @Excel(name = "序列号")
    @ApiModelProperty(value = "序列号",name="serialNumber",required = true,dataType="String",example="序列号")
    private String serialNumber;

    /** 借货单号 */
    @Excel(name = "借货单号")
    @ApiModelProperty(value = "借货单号",name="partDebitNo",required = true,dataType="String",example="借货单号")
    private String partDebitNo;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量",name="qty",required = true,dataType="String",example="数量")
    private String qty;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格",name="price",required = true,dataType="String",example="价格")
    private String price;

    /** 总价 */
    @Excel(name = "总价")
    @ApiModelProperty(value = "总价",name="totalPrice",required = true,dataType="String",example="总价")
    private String totalPrice;

    /** $column.columnComment */
    @Excel(name = "partremark")
    @ApiModelProperty(value = "partremark",name="partremark",required = true,dataType="String",example="partremark")
    private String partremark;

    /** $column.columnComment */
    @Excel(name = "remark")
    @ApiModelProperty(value = "remark",name="remark",required = true,dataType="String",example="remark")
    private String remark;


    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）",name="delFlag",required = true,dataType="String",example="删除标志（0代表存在 2代表删除）")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPartNo(String partNo) 
    {
        this.partNo = partNo;
    }

    public String getPartNo() 
    {
        return partNo;
    }
    public void setPartName(String partName) 
    {
        this.partName = partName;
    }

    public String getPartName() 
    {
        return partName;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setPartDebitNo(String partDebitNo) 
    {
        this.partDebitNo = partDebitNo;
    }

    public String getPartDebitNo() 
    {
        return partDebitNo;
    }
    public void setQty(String qty) 
    {
        this.qty = qty;
    }

    public String getQty() 
    {
        return qty;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setTotalPrice(String totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public String getTotalPrice() 
    {
        return totalPrice;
    }
    public void setPartremark(String partremark) 
    {
        this.partremark = partremark;
    }

    public String getPartremark() 
    {
        return partremark;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Long getServiceNoticeId() {
        return serviceNoticeId;
    }

    public void setServiceNoticeId(Long serviceNoticeId) {
        this.serviceNoticeId = serviceNoticeId;
    }

    public String getServiceNo() {
        return serviceNo;
    }

    public void setServiceNo(String serviceNo) {
        this.serviceNo = serviceNo;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partNo", getPartNo())
            .append("partName", getPartName())
            .append("serialNumber", getSerialNumber())
            .append("partDebitNo", getPartDebitNo())
            .append("qty", getQty())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("remark", getRemark())
            .append("partremark", getPartremark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
